
import {
	mapState,
	mapMutations
} from "vuex"
import {
	getOrderDetalById
} from "./api.js"
export default {
	data() {
	  return {
		orderDetalId: '',
	    order: {}
	  }
	},
	onShow() {
		
	},
	onLoad(options) {
		this.orderDetalId = options.orderDetalId
		this.onLoadCall();
	},
	computed:{
		
	},
	methods: {
		onLoadCall(){
			const params = { id: this.orderDetalId }
			getOrderDetalById(params).then((res) =>{
				this.order = res.data
			}).catch((err) =>{})
		},
		// 返回上一级
		goBack() {
			uni.navigateBack({ delta: 1 })
		},
	},

}


		
		